package com.blog.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author cgx
 * @Date 2021/11/25 16:05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("article_history")
public class ArticleHistory implements Serializable {

    /**
     * 文章浏览历史表id
     */
    @TableId
    private String historyId;

    /**
     * 文章编号
     */
    private String articleNum;

    /**
     * 观看人id
     */
    private String lookUser;

    /**
     * 观看时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date lookTime;

    /**
     * 状态,1正常，-1删除
     */
    private Integer active;
}
